package com.zb.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author WEN
 * @Date 2023/7/11 0011
 **/
@Data
@ApiModel("条款对象封装")
public class ClauseDto {
    @ApiModelProperty(value = "主健ID，添加不必传，修改必传")
    private Long id;

    @NotNull(message = "条款类型不能为空")
    @ApiModelProperty(value = "条款类型：1-注册条款，2-登录条款，3-使用条款", required = true)
    private Integer type;

    @NotBlank(message = "条款内容不能为空")
    @ApiModelProperty(value = "条款内容", required = true)
    private String content;
}
